<template>
    <div class="app-container">
        <div v-show="$route.path == '/dataAcceptance'">
            <section>
                <div class="content" v-loading="loading">
                    <div class="navbar-box">
                        <el-form :inline="true" :model="form" label-width="130px" class="navbar-left">
                            <el-form-item label="创建人：">
                                <el-input v-model="form.keys" prefix-icon="el-icon-search" placeholder="搜索"></el-input>
                            </el-form-item>
                            <el-form-item label="项目经理： ">
                                <el-input v-model="form.keys" prefix-icon="el-icon-search" placeholder="搜索"></el-input>
                            </el-form-item>
                            <el-form-item label="商务经理： ">
                                <el-input v-model="form.keys" prefix-icon="el-icon-search" placeholder="搜索"></el-input>
                            </el-form-item>
                            <el-form-item label="项目合同编号： ">
                                <el-input v-model="form.keys" prefix-icon="el-icon-search" placeholder="搜索"></el-input>
                            </el-form-item>
                            <el-form-item label="数据接收单编号： ">
                                <el-input v-model="form.keys" prefix-icon="el-icon-search" placeholder="搜索"></el-input>
                            </el-form-item>
                            <el-form-item label="创建日期： ">
                                <el-date-picker v-model="value" type="date" placeholder="选择日期"> </el-date-picker>
                            </el-form-item>
                        </el-form>
                        <div class="navbar-right">
                            <!-- <el-button size="medium">删除</el-button> -->
                            <el-button size="medium" type="primary">新建</el-button>
                        </div>
                    </div>
                    <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%;margin-top:10px;" :header-cell-style="{background:'#f5f6f8'}">
                        <el-table-column type="selection" width="55"> </el-table-column>
                        <el-table-column prop="id" label="序号"> </el-table-column>
                        <el-table-column prop="title" label="创建人"> </el-table-column>
                        <el-table-column prop="title" label="创建人编号"> </el-table-column>
                        <el-table-column prop="title" label="项目数据接收单编号"> </el-table-column>
                        <el-table-column prop="title" label="项目合同编号"> </el-table-column>
                        <el-table-column prop="title" label="项目名称"> </el-table-column>
                        <el-table-column prop="title" label="项目经理"> </el-table-column>
                        <el-table-column prop="title" label="商务经理"> </el-table-column>
                        <el-table-column prop="stock" width="180" label="创建时间"> </el-table-column>
                        <el-table-column label="操作" width="180">
                            <template slot-scope="scope">
                               <el-button @click="handleClick(scope.row,1)" type="primary" size="mini "> 编辑
                </el-button>
                                <el-button @click="handleClick(scope.row,2)" type="danger" size="mini">删除</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                    <el-pagination style="margin-top: 40px;text-align: center;padding-bottom: 20px;" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="form.page" :page-sizes="[10, 20, 50, 100]" :page-size="form.limit" layout="total, sizes, prev, pager, next, jumper" :total="form.total">
                    </el-pagination>
                </div>
            </section>
        </div>
        <router-view></router-view>
    </div>
</template>

<script>

export default {
    data() {
        return {
            value:'',
            form: {
                keys: '',
                total: 0,
                limit: 10,
                page: 1,
            },
            id: '',
            tableData: [],
            loading: false,
        }
    },
    created() {

    },
    mounted() {
        // this.getCompanyList()
    },
    methods: {
        
        handleSizeChange(val) {
            this.form.limit = val
            this.getCompanyList()
        },
        handleCurrentChange(val) {
            this.form.page = val
            this.getCompanyList()
        }
    }
}
</script>

<style lang="scss" scoped>
.chunk-title{
    width: 100px;
}
.categoryWrap{
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        box-sizing: border-box;
        .serchLeft{
            width: 80%;
            display: flex;
            align-items: center;
            >div:nth-child(1){
                margin-right: 30px;
            }
            span{
                color: #333;
                font-size: 16px;
                margin-right: 20px;
            }
            .el-input{
                width: 150px;
            }
            .el-input__inner{
                border: none;
                background: #f5f5f5;
            }
        }
        .operatingBtn{
            display: flex;
            margin: 0 5px;
            align-items: center;
        }
    
    }
.app-container {
    .kong {
        height: 40px;
    }
    section {
        background: #eee;
        padding: 30px;
        .content {
            width: 100%;
            height: 100%;
            background: #fff;
            border-radius: 16px;
            padding-top: 18px;
            .top {
                padding-left: 29px;
            }
            ::v-deep .el-checkbox__input {
                margin-left: 10px;
            }
            ::v-deep .el-date-editor {
                width: -webkit-fill-available;
            }
        }
    }
}
</style>